This machine exercise primarily works the hamstrings, which consists of four muscles: the long head of the biceps femoris, the short head of the biceps femoris, the semimembranosus, and the semitendinosus.